<template>
    <el-container>
        <el-header><TopNavBar></TopNavBar></el-header>
        <el-main class="app-content">
            <slot></slot>
        </el-main>
        <el-footer>
            <BottomNavBar></BottomNavBar>
        </el-footer>
        <el-backtop :bottom="100"></el-backtop>
    </el-container>
</template>
<script>
import TopNavBar from '@/components/TopNavBar'
import BottomNavBar from '@/components/BottomNavBar'
export default {
    name: "LayoutDom",
    components:{
        TopNavBar,
        BottomNavBar
    },
    mounted(){
        this.inCanvasJs()
    },
    methods:{
        inCanvasJs(){       
            this.funcs.injectScript('/js/canvas-nest.min.js', {
                color: '0, 255, 255',
                opacity:'0.7',
                zindex:'-1',
                count : '40',
                pointColor : '255, 0, 255'
            })

            this.funcs.injectScript('/js/canvas-ribbon.js', {
                id : 'ribbon',
                size : '300',
                alpha:'0.1',
                zindex:'-1',    
            })
        }
    }
}
        
</script>
<style lang="less" scoped>
.el-header {
    color: #333;
    text-align: center;
    line-height: 60px;
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
    border-bottom: 1px solid #ccc;
    z-index: 9;
    background: #fff;
}
.el-footer {
    color: #2c3e50;
    text-align: center;
    border-top: 1px solid #ccc;
    height: auto;
    z-index: 2;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background: #fff;
}
.app-content {
	padding: 80px 0 0 0;
    margin: 0 auto;
    width: 70%;
	padding-bottom: 100px;
	z-index: 2;
    
}
</style>